package com.example.gulimallmember.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 会员登录记录
 * 
 * @author zzl
 * @email zzl@gmail.com
 * @date 2025-10-27 08:51:23
 */
@TableName("ums_member_login_log")
public class MemberLoginLogEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * member_id
	 */
	private Long memberId;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * ip
	 */
	private String ip;
	/**
	 * city
	 */
	private String city;
	/**
	 * 登录类型[1-web，2-app]
	 */
	private Integer loginType;

	public MemberLoginLogEntity() {
	}

	public MemberLoginLogEntity( Long id, Long memberId, Date createTime, String ip, String city, Integer loginType) {
		this.id = id;
		this.memberId = memberId;
		this.createTime = createTime;
		this.ip = ip;
		this.city = city;
		this.loginType = loginType;
	}

	/**
	 * 获取
	 * @return id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置
	 * @param id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取
	 * @return memberId
	 */
	public Long getMemberId() {
		return memberId;
	}

	/**
	 * 设置
	 * @param memberId
	 */
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取
	 * @return createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置
	 * @param createTime
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取
	 * @return ip
	 */
	public String getIp() {
		return ip;
	}

	/**
	 * 设置
	 * @param ip
	 */
	public void setIp(String ip) {
		this.ip = ip;
	}

	/**
	 * 获取
	 * @return city
	 */
	public String getCity() {
		return city;
	}

	/**
	 * 设置
	 * @param city
	 */
	public void setCity(String city) {
		this.city = city;
	}

	/**
	 * 获取
	 * @return loginType
	 */
	public Integer getLoginType() {
		return loginType;
	}

	/**
	 * 设置
	 * @param loginType
	 */
	public void setLoginType(Integer loginType) {
		this.loginType = loginType;
	}

	public String toString() {
		return "MemberLoginLogEntity{serialVersionUID = " + serialVersionUID + ", id = " + id + ", memberId = " + memberId + ", createTime = " + createTime + ", ip = " + ip + ", city = " + city + ", loginType = " + loginType + "}";
	}
}
